import request from '@/utils/request'

// 医生登录
export const login = (credentials: { username: string; password: string }) => {
  return request({
    url: '/auth/login',
    method: 'post',
    data: credentials
  })
}

// 获取当前医生信息
export const getCurrentDoctor = () => {
  return request({
    url: '/doctors/info',
    method: 'post'
  })
}

// 初始化测试数据
export const initializeTest = () => {
  return request({
    url: '/doctors/init-test',
    method: 'post'
  })
}